import request from '@/plugin/axios'

// 获取列表
export function getList(params) {
    return request({
        url: '/dev/code/generator/list',
        method: 'get',
        params: request.adornParams(params)
    })
}

// 生成代码
export function generatorCode(params) {
    return request({
        url: '/dev/code/generator/code',
        method: 'get',
        params: request.adornParams(params),
        responseType: 'arraybuffer'
    })
}